package com.iwop.moto.service.web.impl;

import com.iwop.moto.dao.web.PayMentDao;
import com.iwop.moto.model.PO.PayMentPO;
import com.iwop.moto.model.SuperRecordModel;
import com.iwop.moto.service.BaseService;
import com.iwop.moto.service.web.PayMentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * #author chenzq
 * #create 2017-01-18-14:24
 */
@Service
public class PayMentServiceImpl extends BaseService implements PayMentService {

    @Autowired
    private PayMentDao payMentDao;

    @Override
    public Long findCount(SuperRecordModel superRecordModel) {
        return payMentDao.findCount(superRecordModel);
    }

    @Override
    public List<PayMentPO> findPayMentList(SuperRecordModel superRecordModel) {
        return payMentDao.findPayMentList(superRecordModel);
    }

    @Override
    public List<PayMentPO> findPayMentAll(SuperRecordModel superRecordModel) {
        return payMentDao.findPayMentAll(superRecordModel);
    }


    @Override
    public PayMentPO sumPayMoney(SuperRecordModel superRecordModel) {
        return payMentDao.sumPayMoney(superRecordModel);
    }

    @Override
    public Double sumCounponMoney() {
        return payMentDao.sumCounponMoney();
    }
}
